package com.syh.jn.scm.infrastructure.repository.model.base;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 经营主体 地址
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_BUSINESS_ENTITY_ADDRESS")
@EqualsAndHashCode(callSuper = true)
public class BusinessEntityAddressModel extends SuperBusinessModel {
  /**
   * 地址省 市 区
   */
  @Column(name = "AREA", columnDefinition = "varchar(300) COMMENT '地址省 市 区 使用[广东省,广州市,海珠区]格式保存'")
  private String area;
  /**
   * 地址
   */
  @Column(name = "ADDRESS", columnDefinition = "varchar(300) COMMENT '单位地址'")
  private String address;
  /**
   * 地区编号
   */
  @Column(name = "AREA_CODE", columnDefinition = "varchar(50) COMMENT '地区编号'")
  private String areaCode;
  /**
   * 联系人
   */
  @Column(name = "CONTACTS", columnDefinition = "varchar(50) COMMENT '联系人'")
  private String contacts;
  /**
   * 职务
   */
  @Column(name = "DUTIES", columnDefinition = "varchar(50) COMMENT '职务'", length = 50)
  private String duties;
  /**
   * 部门
   */
  @Column(name = "DEPARTMENT", columnDefinition = "varchar(50) COMMENT '部门'", length = 50)
  private String department;
  /**
   * 联系手机
   */
  @Column(name = "MOBILE", columnDefinition = "varchar(50) COMMENT '联系手机'", length = 50)
  private String mobile;
  /**
   * 创建日期
   */
  @Column(name = "CREATE_TIME_STAMP", columnDefinition = "bigint COMMENT '创建日期'")
  private Long createTimeStamp;
  /**
   * 所属终端系统:DOWNSTREAM,OPERATION,SUPPLIER,UPSTREAM
   */
  @Column(name = "TERMINAL_TYPE", columnDefinition = "varchar(50) COMMENT '所属终端'")
  private String terminalType;
}
